package com.apes.autoparts.product.repository;

import com.apes.autoparts.product.model.EPCVersionContrast;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.Map;
import java.util.Set;

/**
 * 类描述：
 *
 * @ClassName brandProductRepository
 * @Description 描述
 * @Author wushilong
 * @Date 2022/10/9 11:37
 * @Version 1.0
 */
public interface EPCVersionContrastRepository extends CustomRepository<EPCVersionContrast, String> {


    @Query(value = "select e.id as id, e.autoBrand, e.epcVersion, e.autoLabel from EPCVersionContrast e where e.autoLabel = :autoLabel")
    Map<String, String> queryByCondition(@Param("autoLabel")String autoLabel);

    @Query(value = "select a.id as id from EPCVersionContrast a")
    Set<String> findAllId();
}
